package com.github.edu.repair.api.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-8-20
 */
public class TBxLyxx implements Serializable {

    private Integer id;
    private String lymc;
    private String sm;
    private Integer ssqy;
    private Integer sfqy;
    private TBxLyqy bxLyqy;
    private String ssqymc;
    @JsonIgnore
    private String stateName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLymc() {
        return lymc;
    }

    public void setLymc(String lymc) {
        this.lymc = lymc;
    }

    public String getSm() {
        return sm;
    }

    public void setSm(String sm) {
        this.sm = sm;
    }

    public Integer getSsqy() {
        return ssqy;
    }

    public void setSsqy(Integer ssqy) {
        this.ssqy = ssqy;
    }

    public Integer getSfqy() {
        return sfqy;
    }

    public void setSfqy(Integer sfqy) {
        if(null!=sfqy&&1==sfqy){
            this.stateName="启用";
        }else {
            this.stateName="禁用";
        }
        this.sfqy = sfqy;
    }


    public String getSsqymc() {
        return ssqymc;
    }

    public void setSsqymc(String ssqymc) {
        this.ssqymc = ssqymc;
    }

    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public TBxLyqy getBxLyqy() {
        return bxLyqy;
    }

    public void setBxLyqy(TBxLyqy bxLyqy) {
        if(null!=bxLyqy){
            this.ssqymc=bxLyqy.getQymc();
        }
        this.bxLyqy = bxLyqy;
    }
}
